import { LocalStorage } from "node-localstorage"

const localStorage = new LocalStorage('./scratch');

const StorageKeyType = {
    mainStatus: 'mainStatus',
    colorDiff: 'colorDiff',
    taskProcess: 'taskProcess',
    syncKingdeeOrder: 'syncKingdeeOrder'
}

function getStorageKey(mark, storageKeyType) {
    return `${mark}-${storageKeyType}`
}

export {
    StorageKeyType,
    localStorage,
    getStorageKey
}